<?php
/**
 * Created by PhpStorm.
 * User: Administrator
 * Date: 2018/3/6
 * Time: 17:16
 */
namespace App;

use Illuminate\Database\Eloquent\Model;

class Flight extends Model
{
    //定义表名
    protected $table = 'my_flights';
    //是否自动维护时间戳
    public $timestamps = false;
    //日期存储格式
    protected $dateFormat = 'U';
    //自定义存储时间戳字段
    const CREATED_AT = 'create_date';
    const UPDATED_AT = 'last_update';



}